<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>自猿其说管理后台</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <link rel="stylesheet" href="/static/admin/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/static/admin/layuiadmin/style/admin.css" media="all">
    <link rel="stylesheet" href="/static/common/css/base.css" media="all">
    <link rel="stylesheet" href="/static/common/css/page.css" media="all">
    <link rel="stylesheet" href="/static/common/plugins/font-awesome/css/font-awesome.min.css" media="all">
    <link rel="stylesheet" href="/static/common/plugins/viewer/viewer.css" media="all">
</head>
<body style="overflow-y: scroll;">

<div class="layui-fluid">
    @yield('content')
</div>
<script src="https://cdn.staticfile.org/jquery/3.4.1/jquery.min.js"></script>
<script src="/static/admin/layuiadmin/layui/layui.js"></script>
<script src="/static/common/plugins/viewer/viewer.js"></script>
<script src="/static/common/js/base.js"></script>
<script>
    $.ajaxSetup({
        headers: {
            'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
        }
    });
    //公共方法

    layui.config({
        base: '/static/admin/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['element','form','layer','table','upload','laydate'],function () {
        var element = layui.element;
        var layer = layui.layer;
        var form = layui.form;
        var table = layui.table;
        var upload = layui.upload;
        var laydate = layui.laydate;
        //错误提示
        @if(count($errors)>0)
            @foreach($errors->all() as $error)
                layer.msg("{{$error}}",{icon:5});
                @break
            @endforeach
        @endif

        //信息提示
        @if(session('status'))
            layer.msg("{{session('status')}}",{time: 2000});
        @endif

    });


</script>
@yield('script')
</body>
</html>



